import React, {Suspense} from "react";
import {useRoutes} from "react-router-dom";
import routes from "./routes";

function App() {
    const element = useRoutes(routes)
    return (
        <div className="App">
            <Suspense fallback={<div>Loading...</div>}>
                {element}
            </Suspense>
        </div>
    );
}

export default App;